package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectLearnerDetailDTO;
import com.itheima.tlias84.po.InsertLearnerParam;
import com.itheima.tlias84.po.SelectLearnerPageParam;
import com.itheima.tlias84.po.UpdateLearnerParam;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LearnerService {


    ResultUtil selectLearnerByPage(SelectLearnerPageParam param);
    //新增学员
    int insertLearner( InsertLearnerParam param);
    //根据id查询
    SelectLearnerDetailDTO selectLearnerById(  Integer id);
    //更新学员信息
    int updateLearner(@Param("p") UpdateLearnerParam param);
    //批量删除
    int batchDeleteLearnerByIds(List<Integer> ids);
    //违纪处理
    int vioScore(   Integer id, Integer score);
}
